import { useParams } from 'react-router-dom'

function NewsDetail() {
  // 获取URL路径中的动态参数
  const params = useParams()
  console.log(params)

  // useEffect(async () => {
  //   const result = await getDetails(params.id)
  // }, [])

  return <div>NewsDetail</div>
}

export default NewsDetail
